﻿@model  INSE6260.OnlineBanking.Model.Clients.Client
@{
    ViewBag.Title = "Profile & Preferences";
}
@using (Html.BeginForm("ShowProfile", "Profile", FormMethod.Post))
{
    
    @Html.ValidationSummary(true, "The Information is updated seccessfully")
    <fieldset>
        <legend>Profile</legend>
        @if (ViewBag.Message != null)
        {
            <div style="color: Green">@ViewBag.Message</div>
        }
        @Html.HiddenFor(model => model.Id)
        @Html.HiddenFor(model => model.OccupationTypeId)
        @Html.HiddenFor(model => model.EmploymentTypeId)
        @Html.HiddenFor(model => model.FirstName)
        @Html.HiddenFor(model => model.LastName)
        @Html.HiddenFor(model => model.Gender)
        <div class="editor-label">
            @Html.DisplayFor(modelItem => modelItem.FirstName), @Html.DisplayFor(modelItem => modelItem.LastName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Address)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.Address, new { Rows = 3 })
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Telephone)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.Telephone)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.Email, new { width = 220 })
        </div>
        <p>
            <input type="submit" value="Edit profile" />
            @Html.ActionLink("Cancel", "Index", "Home", null, new { @class = "khbtn" })
        </p>
        <div>@Html.ActionLink("Change Password", "ChangePassword", "Profile")</div>
        <p>
        </p>
        <div>@Html.ActionLink("Change Security Questions", "ChangeSecurityQuestion", "Profile")</div>
    </fieldset> 
}